package com.xinchuang.entity.targetSystem.damage;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author chenyanming
 * @program systems-analysis
 * @description 导弹管理实体
 * @date 2024/05/15
 */
@Data
@TableName("t_missile")
@ApiModel(value = "t_missile对象", description = "导弹管理表")
public class Missile {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty("导弹名称")
    @TableField(value = "missile_name" )
    private String missileName;

    @ApiModelProperty("导弹类型")
    @TableField(value = "missile_type" )
    private String missileType;

    @ApiModelProperty("导弹类型(字典名称)")
    @TableField(exist = false)
    private String missileTypeNmae;

    @ApiModelProperty("最大射程")
    @TableField(value = "range_max" )
    private Double rangeMax;

    @ApiModelProperty("最小射程")
    @TableField(value = "range_min" )
    private Double rangeMin;

    @ApiModelProperty("DD造价（万元）")
    @TableField(value = "missile_cost" )
    private Double missileCost;

    @ApiModelProperty("中心频率")
    @TableField(value = "center_frequency" )
    private Double centerFrequency;

    @ApiModelProperty("通信频率上限")
    @TableField(value = "communication_max" )
    private Double communicationMax;

    @ApiModelProperty("通信频率下限")
    @TableField(value = "communication_min" )
    private Double communicationMin;

    @ApiModelProperty("创建人")
    @TableField(value = "create_user" )
    private String createUser;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("修改人")
    @TableField(value = "update_user" )
    private String updateUser;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("状态（0:正常,1：删除）")
    @TableField(value = "data_status" )
    private Integer dataStatus;

}
